{% load i18n %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}Bootcamp{% endblock %}</title>
    <link rel="icon" type="image/png" href="{{ STATIC_URL }}img/favicon.png">
    <link href="{{ STATIC_URL }}css/bootstrap.min.css" rel="stylesheet">
    <link href="{{ STATIC_URL }}css/bootcamp.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="{{ STATIC_URL }}js/jquery-2.1.1.min.js"></script>
    <script src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
    <script src="{{ STATIC_URL }}js/bootcamp.js"></script>

    {% block head %}
      <link href="{{ STATIC_URL }}css/cover.css" rel="stylesheet">
    {% endblock head %}
  </head>
  <body>
    <a href="https://github.com/vitorfs/bootcamp"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
    <div class="cover">
      <h1 class="logo">Bootcamp</h1>
        {% if form.non_field_errors %}
          {% for error in form.non_field_errors %}
            <div class="alert alert-danger alert-dismissable">
              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
              {{ error }}
            </div>
          {% endfor %}
        {% endif %}
        <div class="login">
          <h2>{% trans 'Log in' %}</h2>
          <form method="post" action="{% url 'login' %}" role="form">
            {% csrf_token %}
            <div class="form-group{% if form.username.errors %} has-error{% endif %}">
              <label for="username">{% trans 'Username' %}</label>
              <input type="text" class="form-control" id="username" name="username">
              {% for error in form.username.errors %}
                <label class="control-label">{{ error }}</label>
              {% endfor %}
            </div>
            <div class="form-group{% if form.password.errors %} has-error{% endif %}">
              <label for="password">{% trans 'Password' %}</label>
              <input type="password" class="form-control" id="password" name="password">
              {% for error in form.password.errors %}
                <label class="control-label">{{ error }}</label>
              {% endfor %}
            </div>
            <div class="form-group">
              <button type="submit" class="btn btn-default">{% trans 'Log in' %}</button>
              <a href="{% url 'signup' %}" class="btn btn-link">{% trans 'Sign up for Bootcamp' %}</a>
            </div>
          </form>
        </div>
      </div>
    <script src="{{ STATIC_URL }}js/ga.js"></script>
  </body>
</html>
